Optimal. Leaf size=257 \[ -\frac {2 \sqrt {d+e x} (f+g x)^3}{c d \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}-\frac {16 g (c d f-a e g) \left (2 a e^2 g-c d (3 e f-d g)\right ) \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{5 c^4 d^4 e \sqrt {d+e x}}+\frac {16 g^2 (c d f-a e g) \sqrt {d+e x} \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{5 c^3 d^3 e}+\frac {12 g (f+g x)^2 \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{5 c^2 d^2 \sqrt {d+e x}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.21, antiderivative size = 257, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 46, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {880, 884, 808,
662} \begin {gather*} -\frac {16 g \sqrt {x \left (a e^2+c d^2\right )+a d e+c d e x^2} (c d f-a e g) \left (2 a e^2 g-c d (3 e f-d g)\right )}{5 c^4 d^4 e \sqrt {d+e x}}+\frac {16 g^2 \sqrt {d+e x} \sqrt {x \left (a e^2+c d^2\right )+a d e+c d e x^2} (c d f-a e g)}{5 c^3 d^3 e}+\frac {12 g (f+g x)^2 \sqrt {x \left (a e^2+c d^2\right )+a d e+c d e x^2}}{5 c^2 d^2 \sqrt {d+e x}}-\frac {2 \sqrt {d+e x} (f+g x)^3}{c d \sqrt {x \left (a e^2+c d^2\right )+a d e+c d e x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 662
Rule 808
Rule 880
Rule 884
Rubi steps
\begin {align*} \int \frac {(d+e x)^{3/2} (f+g x)^3}{\left (a d e+\left (c d^2+a e^2\right ) x+c d e x^2\right )^{3/2}} \, dx &=-\frac {2 \sqrt {d+e x} (f+g x)^3}{c d \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}+\frac {(6 g) \int \frac {\sqrt {d+e x} (f+g x)^2}{\sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}} \, dx}{c d}\\ &=-\frac {2 \sqrt {d+e x} (f+g x)^3}{c d \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}+\frac {12 g (f+g x)^2 \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{5 c^2 d^2 \sqrt {d+e x}}+\frac {(24 g (c d f-a e g)) \int \frac {\sqrt {d+e x} (f+g x)}{\sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}} \, dx}{5 c^2 d^2}\\ &=-\frac {2 \sqrt {d+e x} (f+g x)^3}{c d \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}+\frac {16 g^2 (c d f-a e g) \sqrt {d+e x} \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{5 c^3 d^3 e}+\frac {12 g (f+g x)^2 \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{5 c^2 d^2 \sqrt {d+e x}}-\frac {\left (8 g (c d f-a e g) \left (2 a e^2 g-c d (3 e f-d g)\right )\right ) \int \frac {\sqrt {d+e x}}{\sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}} \, dx}{5 c^3 d^3 e}\\ &=-\frac {2 \sqrt {d+e x} (f+g x)^3}{c d \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}-\frac {16 g (c d f-a e g) \left (2 a e^2 g-c d (3 e f-d g)\right ) \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{5 c^4 d^4 e \sqrt {d+e x}}+\frac {16 g^2 (c d f-a e g) \sqrt {d+e x} \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{5 c^3 d^3 e}+\frac {12 g (f+g x)^2 \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{5 c^2 d^2 \sqrt {d+e x}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.10, size = 134, normalized size = 0.52 \begin {gather*} \frac {2 \sqrt {d+e x} \left (16 a^3 e^3 g^3+8 a^2 c d e^2 g^2 (-5 f+g x)-2 a c^2 d^2 e g \left (-15 f^2+10 f g x+g^2 x^2\right )+c^3 d^3 \left (-5 f^3+15 f^2 g x+5 f g^2 x^2+g^3 x^3\right )\right )}{5 c^4 d^4 \sqrt {(a e+c d x) (d+e x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.13, size = 179, normalized size = 0.70
method | result | size |
default | \(\frac {2 \sqrt {\left (c d x +a e \right ) \left (e x +d \right )}\, \left (g^{3} x^{3} c^{3} d^{3}-2 a \,c^{2} d^{2} e \,g^{3} x^{2}+5 c^{3} d^{3} f \,g^{2} x^{2}+8 a^{2} c d \,e^{2} g^{3} x -20 a \,c^{2} d^{2} e f \,g^{2} x +15 c^{3} d^{3} f^{2} g x +16 a^{3} e^{3} g^{3}-40 a^{2} c d \,e^{2} f \,g^{2}+30 a \,c^{2} d^{2} e \,f^{2} g -5 f^{3} c^{3} d^{3}\right )}{5 \sqrt {e x +d}\, \left (c d x +a e \right ) c^{4} d^{4}}\) | \(179\) |
gosper | \(\frac {2 \left (c d x +a e \right ) \left (g^{3} x^{3} c^{3} d^{3}-2 a \,c^{2} d^{2} e \,g^{3} x^{2}+5 c^{3} d^{3} f \,g^{2} x^{2}+8 a^{2} c d \,e^{2} g^{3} x -20 a \,c^{2} d^{2} e f \,g^{2} x +15 c^{3} d^{3} f^{2} g x +16 a^{3} e^{3} g^{3}-40 a^{2} c d \,e^{2} f \,g^{2}+30 a \,c^{2} d^{2} e \,f^{2} g -5 f^{3} c^{3} d^{3}\right ) \left (e x +d \right )^{\frac {3}{2}}}{5 c^{4} d^{4} \left (c d e \,x^{2}+a \,e^{2} x +c \,d^{2} x +a d e \right )^{\frac {3}{2}}}\) | \(187\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.33, size = 169, normalized size = 0.66 \begin {gather*} -\frac {2 \, f^{3}}{\sqrt {c d x + a e} c d} + \frac {6 \, {\left (c d x + 2 \, a e\right )} f^{2} g}{\sqrt {c d x + a e} c^{2} d^{2}} + \frac {2 \, {\left (c^{2} d^{2} x^{2} - 4 \, a c d x e - 8 \, a^{2} e^{2}\right )} f g^{2}}{\sqrt {c d x + a e} c^{3} d^{3}} + \frac {2 \, {\left (c^{3} d^{3} x^{3} - 2 \, a c^{2} d^{2} x^{2} e + 8 \, a^{2} c d x e^{2} + 16 \, a^{3} e^{3}\right )} g^{3}}{5 \, \sqrt {c d x + a e} c^{4} d^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.78, size = 216, normalized size = 0.84 \begin {gather*} \frac {2 \, {\left (c^{3} d^{3} g^{3} x^{3} + 5 \, c^{3} d^{3} f g^{2} x^{2} + 15 \, c^{3} d^{3} f^{2} g x - 5 \, c^{3} d^{3} f^{3} + 16 \, a^{3} g^{3} e^{3} + 8 \, {\left (a^{2} c d g^{3} x - 5 \, a^{2} c d f g^{2}\right )} e^{2} - 2 \, {\left (a c^{2} d^{2} g^{3} x^{2} + 10 \, a c^{2} d^{2} f g^{2} x - 15 \, a c^{2} d^{2} f^{2} g\right )} e\right )} \sqrt {c d^{2} x + a x e^{2} + {\left (c d x^{2} + a d\right )} e} \sqrt {x e + d}}{5 \, {\left (c^{5} d^{6} x + a c^{4} d^{4} x e^{2} + {\left (c^{5} d^{5} x^{2} + a c^{4} d^{5}\right )} e\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (d + e x\right )^{\frac {3}{2}} \left (f + g x\right )^{3}}{\left (\left (d + e x\right ) \left (a e + c d x\right )\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 496 vs.
\(2 (241) = 482\).
time = 2.36, size = 496, normalized size = 1.93 \begin {gather*} \frac {2 \, {\left (c^{3} d^{6} g^{3} - 5 \, c^{3} d^{5} f g^{2} e + 15 \, c^{3} d^{4} f^{2} g e^{2} + 2 \, a c^{2} d^{4} g^{3} e^{2} + 5 \, c^{3} d^{3} f^{3} e^{3} - 20 \, a c^{2} d^{3} f g^{2} e^{3} - 30 \, a c^{2} d^{2} f^{2} g e^{4} + 8 \, a^{2} c d^{2} g^{3} e^{4} + 40 \, a^{2} c d f g^{2} e^{5} - 16 \, a^{3} g^{3} e^{6}\right )} e^{\left (-2\right )}}{5 \, \sqrt {-c d^{2} e + a e^{3}} c^{4} d^{4}} - \frac {2 \, {\left (c^{3} d^{3} f^{3} e - 3 \, a c^{2} d^{2} f^{2} g e^{2} + 3 \, a^{2} c d f g^{2} e^{3} - a^{3} g^{3} e^{4}\right )}}{\sqrt {{\left (x e + d\right )} c d e - c d^{2} e + a e^{3}} c^{4} d^{4}} + \frac {2 \, {\left (15 \, \sqrt {{\left (x e + d\right )} c d e - c d^{2} e + a e^{3}} c^{18} d^{18} f^{2} g e^{24} - 30 \, \sqrt {{\left (x e + d\right )} c d e - c d^{2} e + a e^{3}} a c^{17} d^{17} f g^{2} e^{25} + 5 \, {\left ({\left (x e + d\right )} c d e - c d^{2} e + a e^{3}\right )}^{\frac {3}{2}} c^{17} d^{17} f g^{2} e^{22} + 15 \, \sqrt {{\left (x e + d\right )} c d e - c d^{2} e + a e^{3}} a^{2} c^{16} d^{16} g^{3} e^{26} - 5 \, {\left ({\left (x e + d\right )} c d e - c d^{2} e + a e^{3}\right )}^{\frac {3}{2}} a c^{16} d^{16} g^{3} e^{23} + {\left ({\left (x e + d\right )} c d e - c d^{2} e + a e^{3}\right )}^{\frac {5}{2}} c^{16} d^{16} g^{3} e^{20}\right )} e^{\left (-25\right )}}{5 \, c^{20} d^{20}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.61, size = 252, normalized size = 0.98 \begin {gather*} \frac {\sqrt {c\,d\,e\,x^2+\left (c\,d^2+a\,e^2\right )\,x+a\,d\,e}\,\left (\frac {\sqrt {d+e\,x}\,\left (32\,a^3\,e^3\,g^3-80\,a^2\,c\,d\,e^2\,f\,g^2+60\,a\,c^2\,d^2\,e\,f^2\,g-10\,c^3\,d^3\,f^3\right )}{5\,c^5\,d^5\,e}+\frac {2\,g^3\,x^3\,\sqrt {d+e\,x}}{5\,c^2\,d^2\,e}-\frac {2\,g^2\,x^2\,\left (2\,a\,e\,g-5\,c\,d\,f\right )\,\sqrt {d+e\,x}}{5\,c^3\,d^3\,e}+\frac {2\,g\,x\,\sqrt {d+e\,x}\,\left (8\,a^2\,e^2\,g^2-20\,a\,c\,d\,e\,f\,g+15\,c^2\,d^2\,f^2\right )}{5\,c^4\,d^4\,e}\right )}{\frac {a}{c}+x^2+\frac {x\,\left (5\,c^5\,d^6+5\,a\,c^4\,d^4\,e^2\right )}{5\,c^5\,d^5\,e}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________